import java.util.*;

public class checkTest3 {
    public static void main(String[] args) {
        Test3 test3 = new Test3();
        Scanner s=new Scanner(System.in);
        for (int i = 1; i <=10; i++) {
            String a=s.next();
            String b=s.next();
            String c=s.next();
            if(c.equals("1")){
                System.out.println(test3.getSubtraction(a,b,c));
            }else if (c.equals("0")) {
                System.out.println(test3.getAddition(a,b,c));
            }else {
                System.out.println("测试加法请输入0，测试减法请输入1");
            }
        }
    }
}